package com.langxin.erp.action;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.langxin.erp.util.web.ActionUtils;

/**
 * 主页
 * @author guqj
 *
 */
@Controller
public class HomeAction {

	@RequestMapping(value = "home", method = RequestMethod.GET)
	public String home(Model model){
		model.addAttribute("ip", ActionUtils.getIP());
		model.addAttribute("user", ActionUtils.getCurrentUser());
		return "home.jsp";
	}
}
